<%@ page import="java.util.*,ServerDB.MapFileServer"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="author" content="Wink Hosting (www.winkhosting.com)" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" href="images/style.css" type="text/css" />
<title>Clever DropBox</title>
</head>
<body>

	<div id="contenttext">
		<div class="panel" align="justify">
			<div class="bodytext" style="padding: 12px;" align="justify">
				<!-- <blockquote> -->
				<p>
					<span class="orangelogotext">Files</span>
				</p>
				<!-- </blockquote> -->
			</div>
			<blockquote>
				<table border="0">
					<%
						List<MapFileServer> listFiles = (List<MapFileServer>) session
								.getAttribute("Files");
						Iterator<MapFileServer> itFiles = listFiles.iterator();
						while (itFiles.hasNext()) {
							MapFileServer file = itFiles.next();
							String nameFile = file.getFileName().toString();
							String filePath = file.getFilePath().toString();
					%>
					<tr>

						<td><span class="bodytext"> <%=nameFile%> </span></td>
						<td><a
							href="/DownloadFileServlet?FilePath=<%=filePath%>&FileName=<%=nameFile%>"
							title="Download File"><img src="images/download.png" /> </a></td>
					</tr>
					<%
						}
					%>
					<tr>

						<td>
							<form action="/UploadFile" method="post"
								enctype="multipart/form-data">
								<input type="file" name="file" size="50" /> <br /> 
								<input type="submit" name="sub" id="sub" value="Upload File" />
							</form> 
							<!-- <form id="form5" name="form5" method="post" action="/UploadFile">
								<input type=file name="browser" id="browser" value="browser" />
							</form>  -->
						</td>
					</tr>
				</table>
				<p>&nbsp;</p>
			</blockquote>
		</div>
	</div>
	</div>

</body>
</html>
